Dreamweaver Article

Creating a Flash Element


Andreas Heim

Andreas Heim

Smashing Ideas

Table of Contents

  1. Introduction
  2. Preparing a Flash Component for a life as a Flash Element
    1. Single Quotes
    2. Placement of [Inspectable] tags
    3. Type setting for links
    4. Defining the type for Array elements
    5. Further documentation
    6. Updating the FooterNav component
    7. Exporting the FooterNav component as Flash Element
  3. Creating the Extension
    1. Setting up the Extension Installation File
    2. Compiling the Extension
    3. Installing the Extension
    4. Using the Footer Nav Extension

Macromedia is working hard to make you more productive. A big part of this effort is increasing the integration between products of the Macromedia MX family step by step. If you have used Studio MX 2004, or even just Macromedia Flash MX 2004 and Dreamweaver MX 2004, you already know about the interface integration. This article is about a brand new feature called Flash elements, which strengthens the content integration between the two products.

What is a Flash element? It is a Flash component that you can directly insert and customize in a page you are creating with Dreamweaver. While you have been able to insert a Macromedia Flash movie in Dreamweaver for a long time, you can now configure the Flash element directly within Dreamweaver using the Tag inspector. There is no need to go back to Flash to change the configuration of the Flash movie or mess with the source code to pass some extra variables to Flash. This tight integration empowers Dreamweaver users to modify Flash elements, which improves workflow and reduces the time spent passing the elements back and forth between the Dreamweaver and Flash developer for simple edits.

The new Flash elements also make it much easier to create reusable Flash content for your own use as well as for distribution as an extension. In this article, you will learn how to modify a Flash MX 2004 component to become a Flash element, and how to package it as an extension to install with Dreamweaver MX 2004.

You have probably heard about the patent lawsuit between Eolas and Microsoft, and the changes that Microsoft may be forced to make to the Internet Explorer browser. At the time of writing of this article, things are still in flux and Dreamweaver creates HTML output the way things used to be. After integrating a Flash element into your page, I recommend updating the page for deployment the way you should update any other page. You can find out about the techniques for doing so in the Active Content Developer Center.

Requirements

To complete this tutorial you will need to install the following software and files:

Studio MX 2004 with Flash Professional


Macromedia Dreamweaver MX 2004


Macromedia Flash MX Professional 2004


Macromedia Extension Manager

(included in the above products)


Note: You can also follow this tutorial with Flash MX 2004 Standard version. However, you won’t have the ability to edit the class files with the built in script editor; you will need to use an external text editor.

Tutorials and sample files:


These files contain the FooterNav component created in the article Building the FooterNav Component. You will use the sample component to create a Flash element in this article. If you are interested in learning the entire process of creating a Flash component, modifying that component as a Flash Element, and packaging it as a Dreamweaver extension, read the article, Building the FooterNav Component prior to completing this article.



About the author

Andreas Heim works as Director of Technology at Smashing Ideas in Seattle. He focuses on challenging Flash projects – favorable if they include Flash-Server interaction or lead to building reusable components. He passes on the knowledge gained from these projects to his team members, through mailing lists and by contributing to books. Some of the outstanding projects Andreas worked on over the years led to invitations to speak at several flashforward conferences and he became a Macromedia Advisory Board member. In his time off, Andreas enjoys playing soccer – something that stayed with him all the way from his hometown Hattenhofen in Germany.